class CreateFeeds < ActiveRecord::Migration
  def self.up
    create_table :feeds, :force => true do |t|
     t.column :url , :string
     t.column :real_url, :string
     t.column :title , :string
     t.column :description , :text
     t.column :last_updated , :datetime
     t.column :type , :string
    end
    
    create_table :entries , :force => true do |t|
      t.column  :date_published , :datetime
      t.column  :authors , :string
      t.column  :content , :text
      t.column  :description , :text
      t.column  :title , :string
      t.column  :feed_id , :integer
    end
    
    create_table :urls , :force => true do |t|
     t.column  :url , :string 
     t.column  :entry_id , :integer
    end
    
    
  end
  
  def self.down
    drop_table :feeds
    drop_table :entries
    drop_table :urls
  end
  
end